/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package config.Models;

import config.ConfigMacros;
import java.util.Map;
import libCore.Util;

/**
 *
 * @author LinhTA
 */
public class Conf_BoxEgg {
    
    public int maxEgg ;
    public Require require;

    public Conf_BoxEgg (Map<String, Object> obj)
    {
        maxEgg = Integer.parseInt(obj.get(ConfigMacros.BOXEGG_MAXEGG).toString());
        Map<String, Object> req = Util.obj2Map(obj.get(ConfigMacros.BOXEGG_REQUIRE));
        //req = (HashMap<String, Object>) ;
        require = new Require(req);
    }
}
